/**
 * 报告模块
 */
import { get,post } from './http'

/**
 * 研报列表
 */
interface ReportList{
  PageSize: number,
  CurrentIndex: number,
  StartDate?: string,
  EndDate?: string,
  Frequency?: string,
  ClassifyNameFirst?: string,
  ClassifyNameSecond?: string,
  State?: string,
  KeyWord?: string
}
export const apiReportList = (params: ReportList) => {
  return get('/report/list',params)
}

/** 
 * 研报发布
 */
export const apiReportPublish = (params:{ReportIds:string}) => {
  return post('/report/publish',params)
}

/** 
 * 研报取消发布
 */
 export const apiReportCancelPublish = (params: { ReportIds: number }) => {
  return post('/report/publish/cancle',params)
}

/** 
 * 研报删除
 */
export const apiReportDelete = (params: { ReportIds: number }) => {
  return post('/report/delete',params)
}

/** 
 * 消息推送
 */
 export const apiReportSendMsg = (params: { ReportIds: number }) => {
  return post('/report/sendTemplateMsg',params)
}

/** 
 * 研报上传图片
 */
export const apiReportUploadImg = (params: { File: any }) => {
  return post('/report/uploadImg',params)
}